package com.jvtd.eyl.widget.adapter;

import android.databinding.ViewDataBinding;

import com.jvtd.eyl.BR;
import com.jvtd.eyl.R;
import com.jvtd.widget.adapter.JvtdQuickAdapter;
import com.jvtd.widget.adapter.viewHolder.JvtdViewHolder;

import java.util.ArrayList;

/**
 * txt书籍条目
 *
 * 作者:chenlei
 * 时间:2018/11/18 0:34 AM
 */
public class TxtAdapter extends JvtdQuickAdapter<String,JvtdViewHolder>
{
  public TxtAdapter()
  {
    super(R.layout.adapter_txt, new ArrayList<>());
  }

  @Override
  protected void convert(JvtdViewHolder helper, String item)
  {
    ViewDataBinding binding = helper.getBinding();
    binding.setVariable(BR.info, item);
    binding.executePendingBindings();
  }
}
